<!DOCTYPE html>
<html lang="en" >
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
    <link rel="icon" type="image/x-icon" href="{{ asset('favicon64.ico') }}" />
    {% block stylesheet %}
        {% stylesheets
            'bundles/icsocui/css/bootstrap.min.css'
            'bundles/icsocui/css/font-awesome.min.css'
            'bundles/icsocui/css/ace-fonts.css'
            'bundles/icsocui/css/ace-skins.min.css'
             filter="cssrewrite"
        %}
        <link rel="stylesheet" href="{{ asset_url }}" />
        {% endstylesheets %}
    {% endblock %}
    <style>
        #grid-table{
            height: 1px;
        }
    </style>
    {% block stylesheet_footer %}
        {% stylesheets
        'bundles/icsocui/css/ace.min.css'
        filter="cssrewrite"
        %}
        <link rel="stylesheet" href="{{ asset_url }}" />
        {% endstylesheets %}
    {% endblock %}

    {%  block head_script %}
        {% javascripts
        'bundles/icsocui/js/ace-extra.min.js'
        filter='uglifyjs'
        %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
        {% endjavascripts %}
    {% endblock %}

    {% block statistic_script %}
        <script>
            var _hmt = _hmt || [];
            (function() {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?{{ baidu_statistic_sitecode }}";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
            window.zhuge = window.zhuge || [];window.zhuge.methods = "_init debug identify track trackLink trackForm page".split(" ");
            window.zhuge.factory = function(b) {return function() {var a = Array.prototype.slice.call(arguments);a.unshift(b);
                window.zhuge.push(a);return window.zhuge;}};for (var i = 0; i < window.zhuge.methods.length; i++) {
                var key = window.zhuge.methods[i];window.zhuge[key] = window.zhuge.factory(key);}window.zhuge.load = function(b, x) {
                if (!document.getElementById("zhuge-js")) {var a = document.createElement("script");var verDate = new Date();
                    var verStr = verDate.getFullYear().toString()+ verDate.getMonth().toString() + verDate.getDate().toString();
                    a.type = "text/javascript";a.id = "zhuge-js";a.async = !0;a.src = (location.protocol == 'http:' ? "http://sdk.zhugeio.com/zhuge.min.js?v=" : 'https://zgsdk.zhugeio.com/zhuge.min.js?v=') + verStr;
                    a.onerror = function(){window.zhuge.identify = window.zhuge.track = function(ename, props, callback){if(callback && Object.prototype.toString.call(callback) === '[object Function]')callback();};};
                    var c = document.getElementsByTagName("script")[0];c.parentNode.insertBefore(a, c);window.zhuge._init(b, x)}};
            window.zhuge.load('{{ zhuge_app_key }}');
        </script>
    {% endblock %}
</head>
<body class="{{ skin|default('no-skin') }}">
{#<div class="widget-box">#}
    {#<div class="widget-body">#}
        {#<div class="widget-main">#}
            <div class="main-container" id="main-container" style="padding-top: 5px">
                {# 主内容区域 #}
                    {% block content %}{% endblock %}
            </div>
        {#</div>#}
   {#</div>#}
{#</div>#}
    {% block javascript %}
        <!--[if !IE]> -->
        <script src="{{ asset('bundles/icsocui/js/jquery.min.js') }}"></script>
        <!-- <![endif]-->
        <!--[if lte IE 9]>
        <script src="{{ asset('bundles/icsocui/js/jquery-1.11.1.min.js') }}"></script>
        <script src="{{ asset('bundles/icsocui/js/json2.js') }}"></script>
        <![endif]-->
        {% javascripts
        'bundles/icsocui/js/bootstrap.min.js'
        %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
        <script>
            $(document).ready(function (){
              $('[data-rel=popover]').popover({container:'body'});
            })
        </script>
        {% endjavascripts %}
    {% endblock %}

    {# 始终保持在最下面的javascript文件 #}
    {% block javascript_footer %}
        {% javascripts
        'bundles/icsocui/js/ace-elements.min.js'
        'bundles/icsocui/js/ace_filter.js'
        filter='uglifyjs'
        %}
        <script type="text/javascript" src="{{ asset_url }}"></script>
        {% endjavascripts %}
    {% endblock %}
    {% block footer %}
    {% endblock %}
</body>
</html>